﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webapp4U;

public partial class Usercontrol_ControlMultiMenuCustomer : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] != null)
        {
            lbtnLogout.Visible = true;
            lbtnLogin.Visible = false;
        }
        else
        {
            lbtnLogin.Visible = true;
            lbtnLogout.Visible = false;
        }
    }

    protected void lbtnLogout_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect(Globals.ApplicationPath + "Default.aspx?Homepage=");
    }
}